<template>
  <el-config-provider :size="size" :locale="language">
    <router-view />
  </el-config-provider>
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import { useAppStore } from './store/app'
import { messages, lang } from '@/locales'

const appStore = useAppStore()
const size = computed(() => {
  return appStore.size
})

const language = computed(() => {
  return messages[lang as keyof typeof messages]
})
</script>

<style lang="scss" scoped>
</style>
